try {
  doSomething();
} catch (e) {
  throw e;
}

function doSomething() {}